import $request from "../request.js";

export default{
    //彩 注册
	caipiaoLoginReg(data = {}, ret = () => {}) {
		$request.request({
			url: 'Mobile.Public.ajax_register.do',
			method: 'post',
			data: data,
            caipiao:1
		}).then(res => {
			ret(res)
		})
	},
    caipiaoLoginLogin(data = {}, ret = () => {}) {
		$request.request({
			url: 'Mobile.Public.login_ajax.do',
			method: 'post',
			data: data,
            caipiao:1
		}).then(res => {
			ret(res)
		})
	},
    //更新添加 彩的用户
    
    caipiaoAddUser(data = {}, ret = () => {}) {
		$request.request({
			url: '/api/User/caipiao_add',
			method: 'post',
			data: data,
		}).then(res => {
			ret(res)
		})
	},
	//彩票几率
	caipiaoBerRecord(data = {}, ret = () => {}) {
		$request.request({
			url: '/api/user/berRecord',
			method: 'get',
			data: data,
		}).then(res => {
			ret(res)
		})
	},
	
    //转出 
    caipiaotransferOut(data = {}, ret = () => {}) {
		$request.request({
			url: 'Mobile.Index.transfer_out.do',
			method: 'post',
			data: data,
            caipiao:1
		}).then(res => {
			ret(res)
		})
	},
     //转入 
    caipiaotransferIn(data = {}, ret = () => {}) {
		$request.request({
			url: 'Mobile.Index.transfer_in.do',
			method: 'post',
			data: data,
            caipiao:1
		}).then(res => {
			ret(res)
		})
	},
    
    
}